package ltd.dujiabao.springcloud.service;

import ltd.dujiabao.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author : DuJiabao
 * @Project : springcloud
 * @Time : 2021/5/26 20:56
 * @Desc :
 */

@FeignClient("seata-storage-service")
public interface StorageFeignService {
  @PostMapping("/storage/decrease")
  CommonResult decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
